package com.zodiac.app.szse.sse.stockdata;

import com.zodiac.app.szse.sse.SseClient;
import com.zodiac.app.szse.sse.stockdata.dto.SseStockDataOverviewDayRequest;
import com.zodiac.app.szse.sse.stockdata.dto.SseStockDataOverviewDayResponse;

/**
 * 生交所-股票数据
 */
public class SseStockDataApi {

    private static final String OVERVIEW_DAY_QUERY_URL = "http://query.sse.com.cn/marketdata/tradedata/queryNewTradingByProdTypeData.do";

    /**
     * 每日概况
     *
     * @param request
     * @return
     */
    public SseStockDataOverviewDayResponse overviewDayQuery(SseStockDataOverviewDayRequest request) {
        return SseClient.create(OVERVIEW_DAY_QUERY_URL).execute(request, SseStockDataOverviewDayResponse.class);
    }

}
